package com.muhuahealth.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class BridgeEntity {

    private Integer id;

    private String bridgeName;

    private String street;

    private String startName;

    private String endName;

    private String buildYear;

    private String bridgeAttribute;

    private String bridgeTexture;

    private String ownership;

    private String checkRank;

    private String checkUnit;

    // 前台String->后台Date
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // 后台时间戳Date->前台格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date checkTime;

    private Integer isDeleted;
}
